﻿using Dapper;
using IService;
using Microsoft.Data.SqlClient;
using Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;

namespace Service
{
    public class UserRoleService : IUserRoleService
    {
        private UserRoleDal _ur = new UserRoleDal();
        /// <summary>
        /// 获取
        /// </summary>
        /// <returns></returns>
        public async Task<List<Users>> FindAllUserInfo()
        {
            return await _ur.FindAllUserInfo();
        }

        //登录
        public async Task<UserRole> LoginAsync(string u_name, string u_password)
        {
            return await _ur.LoginAsync(u_name, u_password);
        }
    }
}
